package com.xinqi.modules.sys.appversion.dto.req;

import com.xinqi.common.base.response.Param;
import io.swagger.v3.oas.annotations.Parameter;
import lombok.Data;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;

/**
 * 版本记录列表-请求对象-查询
 *
 * @author: linkai
 * @date: 2023/04/27
 */
@Data
public class AppVersionQueryDTO extends Param {
    /**
     * ID
     */
    @Parameter(description = "id", example = "100001")
    private Long id;

    /**
     * 渠道: qihu360/alibaba/tencent/baidu/huawei/meizu/xiaomi/oppo/vivo/samsung/sogou/debug
     */
    @Parameter(description = "渠道: qihu360/alibaba/tencent/baidu/huawei/meizu/xiaomi/oppo/vivo/samsung/sogou/debug", example = "alibaba")
    @NotEmpty(message = "{sys.cmn.version.channel.not.blank}")
    private String channel;
    /**
     * 客户端：1：Android；2：iOS
     */
    @Parameter(description = "客户端：1：Android；2：iOS", example = "1")
    @NotNull(message = "{sys.cmn.version.clientType.not.blank}")
    private Integer clientType;
    /**
     * 是否强制安装
     */
    @Parameter(description = "是否强制安装", example = "1")
    private Integer isForced;
    /**
     * 版本号
     */
    @Parameter(description = "版本号", example = "1")
    @NotNull(message = "{sys.cmn.version.versionCode.not.blank}")
    private Integer versionCode;

}
